<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('@validation_article') ?>" id="editform" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
<ul>
<?php $i=0;foreach ($form as $row): ?>
	<?php if(!$row->isHidden()):?>
        <li class="form_label">
            <?php echo $row->renderLabel() ?>
        </li>
        <li class="form_help">
            <?php echo $row->renderHelp() ?>
        </li>
        <li class="form_error">
            <?php echo $row->renderError() ?>
        </li>
    
        <li class="form_row">
        	<?php if($i == 4):?>
            	<div id="draft_info" style="margin:5px; text-align:right"></div>
			<?php endif;?>
            <?php echo $row->render() ?>
            <?php if ($i == 3): ?>
            	<div id="version_major"></div>
            <?php endif;?>
        </li>
    <?php endif;?>
<?php $i++;endforeach; ?>
<?php echo $form->renderHiddenFields() ?>
    <li class="form_button">
        <input type="submit" value="Envoyer" />
    </li>
</ul>

</form>
